<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>small test</title>
<script type="text/javascript" src="../hc.js"></script>
</head>

<body>
<label>
<input type="button" value="提交" onclick="alert(m1);alert(m2);alert(m3);alert(m4);" />
</label>
<input type="button" id="bp" value="beep" /><br /><input type="button" id="idx" value="indexOf" />
<br />
<textarea name="tx1" id="tx1" cols="45" rows="5">		position:relative;
		display:block;
		float:left;
		width:100%;
		height:0;
		line-height:0;
		border:0;
		border-top:solid #88a 1px;
		border-bottom:solid #eef 1px;
		margin:2px;
		margin-left:0;
		overflow:hidden;
</textarea>
<textarea name="tx2" id="tx2" cols="45" rows="5"></textarea>
<br />
<input id="uesc" type="button" value="uesc$" /><input id="duc" type="button" value="duc$" /><input id="css1" type="button" value="css1" />
<input id="eq" type="button" value="=&=" /><input id="qry" type="button" value="qry" />
<input id="jsoncss" type="button" value="jsoncss" />
<script type="text/javascript">
var s='post|get';
var z='/'+ s +'/i';
/* var m1=z.test('Get');
var m2=z.test('Get');
var m3=/z/.test('Z');
var m4=/z/i.test('Z');
 */
$('idx').onclick=function(){
var ary=['abc',23,55,'beep'];
alert(ary.indexOf(55));
};
var idle=function(){
this.beep=20;
this.init=function(){alert(this.beep);};
}
$('bp').onclick=function(){var bep=new idle;bep.init();};
$('uesc').onclick=function(){$('tx2').innerHTML=uesc$($('tx1').innerHTML);};
$('duc').onclick=function(){$('tx2').innerHTML=duc$($('tx1').innerHTML);};
$('eq').onclick=function(){$('tx1').innerHTML=$('tx1').innerHTML.replace(/\:/g,'=').replace(/;\n\t\t/g,'&');};
$('css1').onclick=function() {$('tx2').innerHTML= strJSON$($('tx1').innerHTML.match(/([^;]*?)\:([^;]*)/g));};
$('qry').onclick=function() {$('tx2').innerHTML= strJSON$($('tx1').innerHTML.match(/([^&]*?)\=([^&]*)/g));};
$('jsoncss').onclick=function(){tmp=$('tx1').innerHTML.jsonCSS$();$('tx2').innerHTML=strJSON$(tmp);};

</script>
</body>
</html>
